package dao;

import java.util.List;

import javax.sql.DataSource;

import database.ConnexionJavaDB;

public abstract class DAO<T> {

	public DataSource dataSource = ConnexionJavaDB.getInstance();
	
	public abstract T create (T obj);
	
	public abstract T update (T obv);
	
	public abstract void delete (T obv);
	
	public abstract T find (long id);
	
	public abstract List<T> findAll ();
	
}
